package com.itheima.tlias84.po;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;

@Data
public class SelectEmpPageParam {
    /**
     * 页码
     */
    private Integer page;
    /**
     * 每页数量
     */
    private Integer pageSize;

    private String name;

    private Integer gender;

    /**
     * 前端请求的用@DateTimeFormat
     * 后端返回的用@JsonFormat
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate begin;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate end;

}
